export type AnnotationType = "line" | "rect" | "text" | "fibonacci";
export interface Annotation {
  id: string;
  type: AnnotationType;
  position: { x: number; y: number }; // 数据坐标
  pixelPosition: { x: number; y: number }; // 像素坐标
  content?: string; // 文本内容
  startPosition?: { x: number; y: number }; // 起点位置(用于线条和矩形)
  endPosition?: { x: number; y: number }; // 终点位置(用于线条和矩形)
  style?: any; // 样式
}

// 时间范围类型
export type TimeRange = "1M" | "3M" | "6M" | "1Y" | "ALL";

// 技术指标类型
export type Indicator = "sma" | "ema" | "macd";

// 主题类型
export type Theme = "light" | "dark";